package edu.spex.yjl.week08.class2;

//建立测试类ThrougthWinter，ThrougthWinter类里有如下方法

public class ThrougthWinter {
    private String winterCome(IHibernate hibernate){
        return hibernate.hibernate();
    }
    //在ThrougthWinter的main方法里，分别构造一个北极熊和一个青蛙对象，分别将2个对象作为参数传递到winterCome方法里，运行之。观察是否合理以及输出。
    public static void main(String[] args){

        ThrougthWinter tw =new  ThrougthWinter();

        IHibernate bear=new Bear("xxx","yyyy","zzz","hhh");

        IHibernate frog=new Frog("xxx2","yyyy","zzz","hhh");

        System.out.println(tw.winterCome(bear));

        System.out.println(tw.winterCome(frog));

    }
}
